﻿#ifndef XRTCCLIENT_CODECS_EXTERNAL_VIDEO_ENCODER_FACTORY_H_
#define XRTCCLIENT_CODECS_EXTERNAL_VIDEO_ENCODER_FACTORY_H_

#include <api/video_codecs/video_encoder.h>
#include <api/video_codecs/video_encoder_factory.h>

namespace xrtc {

class ExternalVideoEncoderFactory : public webrtc::VideoEncoderFactory {
public:
    std::vector<webrtc::SdpVideoFormat> 
        GetSupportedFormats() const override;
    std::unique_ptr<webrtc::VideoEncoder> CreateVideoEncoder(
        const webrtc::SdpVideoFormat& format) override;
};

std::unique_ptr<ExternalVideoEncoderFactory>
CreateExternalVideoEncoderFactory();

} // namespace xrtc

#endif // XRTCCLIENT_CODECS_EXTERNAL_VIDEO_ENCODER_FACTORY_H_